package com.ztesoft.web.common.customdb.dao.dto;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;
import com.ztesoft.framework.util.Utils;

public class ApprovaTaskStageDto extends AbstractDto{
	private Integer  dmStrategyId;
	private String  checkObjName;
	private Integer  isCheck;
	private Integer  dmTaskId;
	private Integer  checkCount;
	private Integer  totalRecordCount;
	private String checkDesc;
	private Date checkDate;
	
	public Integer getDmTaskId() {
		return dmTaskId;
	}
	public void setDmTaskId(Integer dmTaskId) {
		this.dmTaskId = dmTaskId;
	}
    public Date getCheckDate() {
    	if (checkDate == null) {
    		return null;
    	}
		return (Date) checkDate.clone();
	}
	public void setCheckDate(Date checkDate) {
		if (checkDate == null) {
			this.checkDate = null;
		} else {			
			this.checkDate = (Date) checkDate.clone();
		}
	}
	public String getCheckDesc() {
		return checkDesc;
	}
	public void setCheckDesc(String checkDesc) {
		this.checkDesc = checkDesc;
	}
	public void setDmStrategyId(Integer dmStrategyId) {
        this.dmStrategyId = dmStrategyId;
    }
    public Integer getDmStrategyId() {
        return dmStrategyId;
    }
    public void setCheckObjName(String checkObjName) {
        this.checkObjName = checkObjName;
    }

    /**
     * 具体分表名
     * @return
     */
    public String getCheckObjName() {
        return StringUtils.isBlank(checkObjName) ? checkObjName : checkObjName.trim();
    }
    
    public Integer getIsCheck() {
		return isCheck;
	}
	public void setIsCheck(Integer isCheck) {
		this.isCheck = isCheck;
	}
	public void setCheckCount(Integer checkCount) {
        this.checkCount = checkCount;
    }
    public Integer getCheckCount() {
    	if(Utils.isEmpty(checkCount)){
    		return 0 ;
    	}else{
    		return checkCount;
    	}
    }
    public void setTotalRecordCount(Integer totalRecordCount) {
        this.totalRecordCount = totalRecordCount;
    }
    public Integer getTotalRecordCount() {
    	if(Utils.isEmpty(totalRecordCount)){
    		return 0 ;
    	}else{
    		 return totalRecordCount;
    	}
    }
}